package pile.pay.service.impl;

import pile.pay.entity.ChargeOrder;
import pile.pay.mapper.ChargeOrderMapper;
import pile.pay.service.IChargeOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import pile.pay.entity.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import pile.pay.utils.WebUtils;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import pile.pay.entity.PageList;
import org.apache.commons.lang.StringUtils;
import java.util.Arrays;
import pile.pay.params.chargeOrder.DeleDTO;
import pile.pay.params.chargeOrder.ListDTO;
/**
 * <p>
 * 充电订单表 服务实现类
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-28
 */
@Service
public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, ChargeOrder> implements IChargeOrderService {

    @Autowired
    private ChargeOrderMapper chargeOrderMapper;


    /**
     *  根据用户ID  查询是否有正在充电的订单
     * @param memberId
     * @return
     */
    @Override
    public ChargeOrder selectMemberChargingOrder(Integer memberId) {
        return chargeOrderMapper.selectMemberChargingOrder( memberId);
    }


}
